package com.dk.api;

import com.dk.pojo.SysAutoCodePart;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("ktg-cloud-Pcode-service")
public interface PartCodeAPI {

    /*根据规则表id查询组合表的类型*/
    @GetMapping("part/selectByRuleId")
    List<SysAutoCodePart> selectByRuleId(@RequestParam("ruleId") Long ruleId);

    @GetMapping("part/selectByPartTypeAndRuleId")
    String selectByPartTypeAndRuleId(@RequestParam("partType") String partType, @RequestParam("ruleId") Long ruleId);
}
